<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>客户服务分析</title>
    <link rel="stylesheet" href="/box/layui/css/layui.css">
    <script src="/box/js/jquery-3.3.1.js"></script>
    <script src="/box/layui/layui.js"></script>
    <script src="/box/js/config.js"></script>
    <link rel="shortcut icon" href="/box/assets/ico/minus.png">
    <style>
        .box-pad {
            padding: 1%
        }
    </style>
</head>

<body>
    <div class="box-pad">
        <h1>客户服务分析</h1>
        <hr>
        <table class="layui-table" lay-filter="serviceTable" id = "serviceTable"></table>
        <script>
            layui.use(['table'], function (){
                var table = layui.table;
                //  表格渲染
                table.render({
                    elem: '#serviceTable'
                    ,url:'http://localhost:8888/service/byType'
                    ,text: {none: '没有查到相关数据'}
                    ,even: true
                    ,page : true
                    ,limit : 10
                    ,cols: [[
                        {field:'eleDictionary', title: '条目', templet : function (d) {
                                return d.eleDictionary.entry;
                            }
                        }
                        ,{field:'num', title: '服务数量'}
                    ]]
                });
            });
        </script>
    </div>
</body>
</html>